package com.meituan.sdk.model.ddzh.common.transferOpUserIdToOpenUserId;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 合作中心opUserId转换为原北极星openUserId
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/common/transfer/opUserIdToOpenUserId",
    businessId = 58,
    apiVersion = "10000",
    apiName = "transfer_op_user_id_to_open_user_id",
    needAuth = false
)
public class TransferOpUserIdToOpenUserIdRequest implements MeituanRequest<TransferOpUserIdToOpenUserIdResponse> {
    /**
    * <p data-diff-id="ct-diff-id-b9416934-acdc-4168-9d79-14a6b43a0e27">合作中心userid</p>
    */
    @NotBlank(message = "opUserId不能为空")
    @SerializedName("opUserId")
    private String opUserId;
    /**
    * <p data-diff-id="ct-diff-id-7a074339-e2b0-400f-9f9a-79955171bb5c">原北极星的AppKey</p>
    */
    @NotBlank(message = "appKey不能为空")
    @SerializedName("appKey")
    private String appKey;

    public String getOpUserId() {
        return opUserId;
    }
    public void setOpUserId(String opUserId) {
        this.opUserId = opUserId;
    }
    public String getAppKey() {
        return appKey;
    }
    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }


    @Override
    public MeituanResponse<TransferOpUserIdToOpenUserIdResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<TransferOpUserIdToOpenUserIdResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "TransferOpUserIdToOpenUserIdRequest{" + "opUserId=" + opUserId + "," + "appKey=" + appKey + "}";
    }
}
